from odoo import models, fields, api, _
from odoo.exceptions import UserError, ValidationError


# 审批流模板类
class WorkflowTemplate(models.Model):
    _inherit = 'sb.workflow.template'

    workflow_type = fields.Selection(selection_add=[
        ('sale_change', 'Sale Change'),
        ('link_delink', 'Link/Delink'),
    ], ondelete={'activity': 'cascade'})
